package com.dgut.usermodule.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.dgut.common.util.ExtAjaxResponse;

@RequestMapping("/except")
@RestController
public class ExceptionCtrl {
	@RequestMapping("/authenticate")
	public String dealUnauthenticate() {
		return "用户名或密码错误！";
	}
	
	@RequestMapping("/authorize")
	public ExtAjaxResponse dealUnauthorize() {
		return new ExtAjaxResponse(false, "你没有权限访问！");
	}
}
